<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<head>
    <link rel="stylesheet" type="text/css" href="/css/style_member.css" />
    <title>会员注册-笔飞美术作品</title>
    <%@include file="../common/js.jsp"%>
    <%@include file="../common/jspcommon.jsp"%>
	<%@include file="../common/css.jsp"%>
	
	<script type="text/javascript" src="js/jquery.validate.js"></script>
	<script type="text/javascript" src="js/base.js"></script>
	<script type="text/javascript"  ">
		function toBack(id){
				if(confirm("确定要申请退货吗?")){
				$.post("/toBack.htm", {
					id:id
				},function(data){
					if(data=="success"){
						window.location.href="/mBackLog.htm?id="+id;
					}
					if(data=="error"){
						alert("申请失败了。");
					}
				});
			}
		}
	</script>
</head>
<body>
<div id="box">
    <%@include file="../common/header.jsp"%>
    <div id="main_div">
        <div class="site_map"><a href="../index.html">首页</a> 》会员注册</div>
        
        <div id="member_div_2">
            <table cellpadding="0" cellspacing="0" class="member_table">
                <tr>
                    <td class="td_1" valign="top">
                        <div class="left_nav">
	                        <ul>
		                            <li><a href="/member.htm">控制面板</a></li>
		                            <li><a href="/memberInfo.htm">个人资料</a></li>
		                            <li	class="cur"><a href="/mOrders.htm">我的订单</a></li>
		                            <li><a href="/mMade.htm">我的定制</a></li>
		                            <li ><a href="/mActivity.htm">我的活动</a></li>
		                            <li><a href="/mHas.htm">关注收藏欣赏</a></li>
		                            <li><a href="mComment.htm">评论管理</a></li>
		                            <li><a href="mPay.htm">支付保证金</a></li>
		                        </ul>
                        </div>
                    </td>
                    <td class="td_2" valign="top">
                        <div>
                            <table cellpadding="3" cellspacing="1" class="member_table2">
                                <tr class="td1">
                                    <td colspan="2" class="td4">订单时间：</td>
                                    <td colspan="7" class="td5"><fmt:formatDate value="${order.gmtCreated}" pattern="yyyy-MM-dd HH:mm:SS" /></td>
                                </tr>
                                <tr class="td2">
                                    <td colspan="2" class="td4">订单编号：</td>
                                    <td colspan="7" class="td5">${order.id}</td>
                                </tr>
                                <tr class="td1">
                                    <td colspan="2" class="td4">收货信息：
	                                     <br/>
	                                     <c:if test="${order.backStatus eq '00'}">
	                                         <a href="#" onclick="toBack('${order.id}');"><img src="../images/back.jpg" alt="" width="80px;"/></a>
	                                     </c:if>
	                                     <c:if test="${order.backStatus eq '01' or order.backStatus eq '02' or order.backStatus eq '03' or order.backStatus eq '04' or order.backStatus eq '05'}">
	                                         <a href="mBackLog.htm?id=${order.id}" ><img src="../images/back_log.jpg" alt="" width="80px;"/></a>
	                                     </c:if>
                                    </td>
                                    <td colspan="5" class="td5">
                                        <p>收货人：${order.addressName}</p>
                                        <p>收货地址：${order.province}${order.city}${order.county}${order.address}</p>
                                        <p>联系电话：${order.telphone}</p>
                                        <p>手　机：${order.phone}</p>
                                        <p>邮　编：${order.zipcode}</p>
                                    </td>
                                </tr>
                                <tr class="td2">
                                    <td colspan="7" class="td5"><b>订单详细：</b></td>
                                </tr>
                                <tr class="td1">
                                    <td style="width:100px; font-weight:bold;">图片</td>
                                    <td style="width:100px; font-weight:bold;">名称</td>
                                    <td style="width:100px; font-weight:bold;">原始价</td>
                                    <td style="width:100px; font-weight:bold;">成交价</td>
                                    <td style="width:100px; font-weight:bold;">订单状态</td>
                                    <td>订单类型</td>
                                </tr>
                                <tr class="td2">
	                                    <td><a href="#"><img src="${order.artPic.imagePath}_100x100" class="img1" alt=""/></a></td>
	                                    <td>${order.artPic.title}</td>
	                                    <td>${order.artPic.price}</td>
	                                    <td>${order.sucPrice}</td>
	                                    <td> 
	                                    	<c:if test="${order.status eq '02'}">失败</c:if>
				                                    <c:if test="${order.status eq '01'}">
						                                    <c:if test="${order.status eq '01'}">
						                                    	<c:if test="${!order.isRead}">下单成功<br />未付款</c:if>
						                                    	<c:if test="${order.isRead}">已付款</c:if>
						                                    </c:if>
				                                    </c:if>
	                                    
	                                    </td>
	                                    <td><c:if test="${ order.type=='auction'}">拍卖</c:if>
	                                    	<c:if test="${ order.type=='find'}">选购</c:if>
	                                    </td>
	                                </tr>
                            </table>
                        </div>
                        
                    </td>
                </tr>
            </table>
        </div>
        <%@include file="../common/footer.jsp" %>
    </div>
</div>


</body>
</html>
